<?php echo form_open(BASE_URL . '/' . $this -> admin . '/create_event', array('id' => 'event_form', 'method' => 'post')); ?>
<!--form starts-->
<div class="form_container">
	<h4>Create Event</h4>
	<!--row starts-->
	<div class="success_msg" style="margin-left:15px;">
		<?php
		if (isset($error) && $error != '') {
			echo $error;
		} else if ($this -> session -> userdata('event_success')) {
			echo $this -> session -> userdata('event_success');
			$this -> session -> set_userdata('event_success', '');
		}
		?>
	</div>
	<div class="row1">
		<div class="form-group col-sm-12">
			<label for="eventname2">Event Name <span class="asterisk">*</span></label>
			<input class="form-control white" id="eventname" name="eventname" autocomplete="off" required placeholder="Event Name" type="text" value="<?php
				if (isset($post_value['eventname'])) { echo $post_value['eventname'];
				}
 ?>">
			<div class="error" id="err-name"></div>
		</div>
		<div class="clearfix"></div>
	</div>
	<!--row closed-->
	<!--row starts-->
	<div class="row1">
		<div class="form-group col-sm-12">
			<label for="Description2">Description <span class="asterisk">*</span></label>
			<textarea class="form-control white" id="description" name="description"><?php
				if (isset($post_value['description'])) { echo $post_value['description'];
				}
 ?></textarea>
			<script type="text/javascript" src="<?php echo ASSET_URL; ?>ckeditor/ckeditor.js?t=B5GJ5GG"></script>
			<script type="text/javascript">
				//<![CDATA[
				CKEDITOR.replace('description', {
					"toolbar" : "Standard"
				});
				//]]>
			</script>
			<div class="error" id="err-desc"></div>
		</div>
		<div class="clearfix"></div>
	</div>
	<!--row closed-->
	<!--row starts-->
	<div class="row1">
		<div class="form-group col-sm-12">
			<label for="Description2">Category</label>
			<textarea class="form-control white" id="category" name="category"><?php
				if (isset($post_value['category'])) { echo $post_value['category'];
				}
 ?></textarea>
			<script type="text/javascript" src="<?php echo ASSET_URL; ?>ckeditor/ckeditor.js?t=B5GJ5GG"></script>
			<script type="text/javascript">
				//<![CDATA[
				CKEDITOR.replace('category', {
					"toolbar" : "Standard"
				});
				//]]>
			</script>
			<div class="error" id="err-cat"></div>
		</div>
		<div class="clearfix"></div>
	</div>
	<!--row closed-->
</div>
<!--form closed-->
<div class="space30"></div>
<button type="button" class="btn btn-primary" id="event_btn">
	Save & Continue
</button>
<?php echo form_close(); ?>